<?php
/**
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT		: Auction
 * @version 	: 1.1
 * COPYRIGHT    : 2010
 * ------------------------------------------------------
 *
 * Created on	:  Sep 13, 2010
 *
 */

// no direct access
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );
RClassesImporter::cls('controllers.AbstractBackEndController');

/**
 * The controller for State application
 *
 */
class FindusFrontController extends AbstractBackEndController {

	var $_model;

	function __construct() {
		parent::__construct();
		SysApplication::importModelCls('FindusModel');
		//$this->_model = new FindusModel();
	}

	function display() {
		$root = SYS_ROOT_URL;
		$lang = $_REQUEST['lang'];
		$sql = "SELECT * FROM settings WHERE id = 3";
		$result = SysDatabase::loadObject($sql);
		
		$image = $result->svalue;
		
	//Load title------------
		$sql = "SELECT * FROM title WHERE id=7";
		$resultTitle = SysDatabase::loadObject($sql);
		if($_REQUEST['lang'] == 'fr'){
			$title = $resultTitle->title_fr;
		} else if($_REQUEST['lang'] == 'en'){
			$title = $resultTitle->title_en;
		}
		
		$team = SysLanguage::_("TEAM");
		$findus = SysLanguage::_("FINDUS");
		$subc = SysLanguage::_("SUBC");
		
	
		eval('echo "'.SysApplication::loadTemplate('front/default').'";');
	}
	

}
